package com.mifengs.mall.di.module;

import com.mifengs.commonbase.di.scope.ActivityScope;
import com.mifengs.mall.ui.msg.MsgCenterContract;
import com.mifengs.mall.ui.msg.MsgCenterPresent;

import dagger.Module;
import dagger.Provides;

/**
 * Created by lihaoqi on 2017/11/17.
 */
@Module
public class MsgCenterModule {

    public final MsgCenterContract.View mView;

    public MsgCenterModule(MsgCenterContract.View mView) {
        this.mView = mView;
    }

    @ActivityScope
    @Provides
    public MsgCenterPresent providePresenter() {
        return new MsgCenterPresent(mView);
    }

}
